package vn.fsoft.gst.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.fsoft.gst.dao.SicDAO;
import vn.fsoft.gst.domain.Sic;

/**
 * 
 * @author Tung
 *
 */

@Service
public class SicServiceImp implements SicService{
	
    @Autowired
    private SicDAO sicDAO;
    
    @Transactional
    public List<Sic> getListSic() {
    	List<Sic> listSic = null;
    	
    	listSic = sicDAO.getListSic();
    	
    	return listSic;
    }
    
    @Transactional
    public Sic getSicByCode(String code) {
    	Sic sic = null;
    	
    	sic = sicDAO.getSicByCode(code);
    	
    	return sic;
    }
    
    @Transactional
    public String getTypeOfBussiness(String sicCode){
    	return sicDAO.getTypeOfBussiness(sicCode);
    }
}
